package cn.qp.controller;

import cn.qp.pojo.Person;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author qipan
 * @date 2020/01/10 19:54
 */
@RestController
public class SpringController {

    @RequestMapping("/hello")
    public Object hello() {
        final Person person = new Person();
        person.setId(10);
        person.setName("张三");
        person.setDate(new Date());
        return person;
    }
}
